package com.yun.utils;

public class GithubConstant {
    // 这里填写在GitHub上注册应用时候获得 CLIENT ID
    public static final String CLIENT_ID = "1f04e2961c3b9320ba4e";
    //这里填写在GitHub上注册应用时候获得 CLIENT_SECRET
    public static final String CLIENT_SECRET = "08333fa7435cb56a85929f6bf023949cf3212543";
    // 回调路径
    public static final String CALLBACK = "http://localhost:8080/SharedCloud_war_exploded/api/github/callback.action";

    //获取code的url
    public static final String CODE_URL = "https://github.com/login/oauth/authorize?client_id=" + CLIENT_ID + "&state=STATE&redirect_uri=" + CALLBACK + "";
    //获取token的url
    public static final String TOKEN_URL = "https://github.com/login/oauth/access_token?client_id=" + CLIENT_ID + "&client_secret=" + CLIENT_SECRET + "&code=CODE&redirect_uri=" + CALLBACK + "";
    //获取用户信息的url
    public static final String USER_INFO_URL = "https://api.github.com/user?access_token=TOKEN";

}
